<!doctype html>
<html class="x-admin-sm" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>后台管理</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="stylesheet" th:href="@{/css/font.css}">
    <link rel="stylesheet" th:href="@{/css/xadmin.css}">
    <!-- <link rel="stylesheet" href="./css/theme5.css"> -->
    <script th:src="@{/lib/layui/layui.js}" charset="utf-8"></script>
    <script type="text/javascript" th:src="@{/js/xadmin.js}"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script>
        // 是否开启刷新记忆tab功能
        // var is_remember = false;
    </script>
</head>
<body class="index">
<!-- 顶部开始 -->
<div th:replace="~{comments/common.html::top}"></div>
<!-- 顶部结束 -->
<!-- 中部开始 -->
<!-- 左侧菜单开始 -->
<div th:replace="~{comments/common.html::left}"></div>
<!-- <div class="x-slide_left"></div> -->
<!-- 左侧菜单结束 -->
<!-- 右侧主体开始 -->

<div id="magicalDragScene" class="mc-root mc-ui-absolute-pane">
    <div class="layui-fluid" style="width: 80.1282%; height: 483px; top: 7.42857%; position: absolute; left: 17.6282%;">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-body ">
                        <form class="layui-form layui-col-space5" th:action="@{/view/search}">
                            <div class="layui-inline layui-show-xs-block">
                                <input name="name" class="layui-input" type="text" placeholder="请输入用户名" autocomplete="off"/>
                            </div>
                            <div class="layui-inline layui-show-xs-block">
                                <button class="layui-btn" type="submit">
                                    <i class="layui-icon">&#xe615;</i>
                                </button>
                            </div>
                        </form>
                    </div>
                    <div class="layui-card-header">
                        <button title="添加" class="layui-btn" th:onclick="xadmin.open('添加用户','/view/useradd',600,600)">
                            <i class="layui-icon"></i>添加
                        </button>
                        <button title="编辑" class="layui-btn" th:onclick="xadmin.open('编辑','/view/useredit',600,600)">
                            <i class="iconfont">&#xe69e;</i>编辑
                        </button>
                        <a title="刷新" class="layui-btn" th:href="@{/view/list}">
                            <i class="iconfont">&#xe6aa;</i>刷新
                        </a>

                    </div>
                    <div class="layui-card-body layui-table-body layui-table-main">
                        <table class="layui-table layui-form">
                            <thead>
                            <tr>
                                <th>用户Id</th>
                                <th>用户名</th>
                                <th>账号</th>
                                <th>密码</th>
                                <th>邮箱</th>
                                <th>注册时间</th>
                                <th>联系电话</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr th:each="emp:${emps}">
                                <td th:text="${emp.getUserId()}"></td>
                                <td th:text="${emp.getName()}"></td>
                                <td th:text="${emp.getUserName()}"></td>
                                <td th:text="${emp.getUserPassword()}"></td>
                                <td th:text="${emp.getUserEmail()}"></td>
                                <td th:text="${#dates.format(emp.getUserRegistrationTime(),'YYYY-MM-dd')}"></td>
                                <td th:text="${emp.getUserPhone()}"></td>
                                <td class="td-manage">
                                    <a title="删除" th:href="@{/view/userdelete(userId=${emp.getUserId()})}">
                                        <i class="layui-icon">&#xe640;</i>
                                    </a>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <!--<div class="layui-card-body ">
                        <div class="page">
                            <div>
                                <a class="prev">&lt;&lt;</a>
                                <a class="num">1</a>
                                <span class="current">2</span>
                                <a class="num">3</a>
                                <a class="num">489</a>
                                <a class="next">&gt;&gt;</a>
                            </div>
                        </div>
                    </div>-->
                </div>
            </div>
        </div>
    </div>
</div>
<!-- 右侧主体结束 -->
<!-- 中部结束 -->

</body>

</html>
